import sys
import os

from pathlib import Path
# 动态添加utils文件夹的路径
current_file_path = Path(os.path.abspath(__file__))
parent_dir = current_file_path.parent.parent
print(parent_dir)
sys.path.append(os.path.join(parent_dir, 'models'))
from  models  import  smartBadgeModel




def smartBadge_record():

    record = " hello   word !"

    smartBadgeModel.insertdata2work_record(record)

    result = smartBadgeModel.query_work_records()

    return result



def insert_work_records(record):

    smartBadgeModel.insertdata2work_record(record)


def query_work_records():


    result = smartBadgeModel.query_work_records()

    return result



